* {
    margin: 0;
    /* font-size: 0; */
}

:root,
body {
    height: 100%;
}

body {
    perspective: 3000px;
    /* 以下只对自己子元素有效 */
    transform-style: preserve-3d;
}
@keyframes round{
    from{
        transform: translate(-50%,-50%) rotateY(0deg);
    }
    to{
        transform: translate(-50%,-50%) rotateY(360deg);
    }
}
div.wrapper {
    /* 相对于body定位 */
    position: absolute;
    left: 50%;
    top: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    animation: round 10s linear infinite;
}

img {
    position: absolute;
    width: 300px;
    /* backface-visibility: hidden; */

}

img:nth-of-type(1) {
    transform: rotatey(45deg)  translateZ(100px);
}

img:nth-of-type(2) {
    transform: rotatey(90deg)  translateZ(800px);
}

img:nth-of-type(3) {
    transform: rotatey(135deg) translateZ(300px);
}

img:nth-of-type(4) {
    transform: rotatey(180deg) translateZ(500px);
}

img:nth-of-type(5) {
    transform: rotatey(225deg) translateZ(300px);
}

img:nth-of-type(6) {
    transform: rotatey(270deg) translateZ(500px);
}

img:nth-of-type(7) {
    transform: rotatey(315deg) translateZ(200px);
}

img:nth-of-type(8) {
    transform: rotatey(360deg) translateZ(500px);
}